<div class="hero-unit">
<h3>修改课程安排</h3>
<input type="hidden" value="<?=$base?>"  id="base" />
<form id="add_form" onsubmit="return add_form();" action="<?=$base?>admin/course/course_plan_update" method="post">
<div class="row-fluid">
    <div class="span4">
        <input type="hidden" name="id" value="<?=$course_plan_list[0]->id?>" />
        <label for='name'>课程：</label>
        <input id="name" name="name" type="text" value="<?=$name?>" readonly/>
        <label for="academy">学院：</label>
        <select  id="academy" name="academy" onclick="change_select()" required>
            <option value=""></option>
            <?php foreach ($academy_list as $key => $value) :?>
                <option value="<?=$value->number?>" <?php if($course_plan_list[0]->academy==$value->number):?>selected<?php endif;?>><?=$value->name?></option>
            <?php endforeach;?>
        </select><br/>
        <label for="major">专业：</label>
        <select id="major" name="major" required>
            <?php foreach ($major_list as $key => $value):?>
                <option value="<?=$value->number?>" <?php if($value->number==$major[0]->number):?>selected<?php endif;?>><?=$value->name?></option>
            <?php endforeach;?>
        </select><br/>
        <label for="grade">年级：</label>
        <select id="grade" name="grade" required>
            <option value=""></option>
            <option value="10" <?php if($course_plan_list[0]->period=='10'):?>selected<?php endif;?>>10级</option>
            <option value="11" <?php if($course_plan_list[0]->period=='11'):?>selected<?php endif;?>>11级</option>
            <option value="12" <?php if($course_plan_list[0]->period=='12'):?>selected<?php endif;?>>12级</option>
            <option value="13" <?php if($course_plan_list[0]->period=='13'):?>selected<?php endif;?>>13级</option>
            <option value="14" <?php if($course_plan_list[0]->period=='14'):?>selected<?php endif;?>>14级</option>
            <option value="15" <?php if($course_plan_list[0]->period=='15'):?>selected<?php endif;?>>15级</option>
            <option value="17" <?php if($course_plan_list[0]->period=='17'):?>selected<?php endif;?>>17级</option>
            <option value="18" <?php if($course_plan_list[0]->period=='18'):?>selected<?php endif;?>>18级</option>
            <option value="19" <?php if($course_plan_list[0]->period=='19'):?>selected<?php endif;?>>19级</option>
        </select><br/>
        <label for="semester">学期：</label>
        <select id="semester" name="semester">
            <option value=''></option>
                <?php foreach($semester as $key=>$value):?>
                    <option value="<?=$key?>" <?php if($key==$course_plan_list[0]->semester):?>selected<?php endif;?>><?=$value?></option>
                <?php endforeach;?>
        </select><br/>
    </div>
    <div class="span4">
        <label for="timeLong">上课周次：</label>
        <input id="timeLong" name="timeLong" type="text" value="<?=$course_plan_list[0]->timeLong?>" required /><br/>
        <label for="weekday">星期：</label>
            <select id="weekday" name="weekday" required>
                <option value=''></option>
                <?php foreach($weekday as $key=>$value):?>
                    <option value="<?=$key?>" <?php if($key==$course_plan_list[0]->weekday):?>selected<?php endif;?>><?=$value?></option>
                <?php endforeach;?>
            </select><br/>
         <label for="section">第几节</label>
            <select id="section" name="section" required>
                <option value=''></option>
                <?php foreach($section as $key=>$value):?>
                    <option value="<?=$key?>" <?php if($key==$course_plan_list[0]->section):?>selected<?php endif;?>><?=$value?></option>
                <?php endforeach;?>
            </select><br/>
    </div>
    <div class="span4">
        <label for="place">上课地点：</label>
        <input id="place" name="place" type="text" value="<?=$course_plan_list[0]->place?>" required /><br/>
        <label for="teacher">教师</label>
        <select id="teacher" name="teacher" required>
            <option value=""></option>
            <?php foreach($teacher_list as $key=>$value):?>
                <option value="<?=$value->t_id?>" <?php if($value->t_id==$course_plan_list[0]->t_id):?>selected<?php endif;?>><?=$value->name?></option>
            <?php endforeach;?>
        </select><br/>
    </div>
    </div>
    <div class="row-fluid">
     <input type="submit" value="修改" />
    </div>
</form>
</div>